package com.bwie.controller;

import com.bwie.pojo.RoomState;
import com.bwie.service.RoomStateService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lenovo
 */
@RestController
@RequestMapping("/service/roomState")
public class RoomStateController {

    @Autowired
    private RoomStateService roomStateService;
    /**
     * @description:状态
     * @author: sxting~😊
     * @Date: 2024/9/25 11:51
     * @return: com.bwie.utils.R
     **/
    @PostMapping("/list")
    public R list(){
        List<RoomState> list = roomStateService.list();
        return R.OK(list);
    }
}
